-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alignment main-dxp with legacy/5.X #23
Conversation
Adding Dolby Atmos workaround. commit: 3030ddd comment: - Add and remove spatial audio remote command handler - Whenever we play video, we must add this event handler that returns a success status for all remote command events - Whenever we stop video or destroy the player, remove this event handler - This is a workaround to get Dolby Atmos working on iOS 15 and above
It seems, that if we have several Video elements and if we remove handler, spatial sound will stop working. commit: b1fa382 comment: How to reproduce: Two videos. First with autoplay. Second paused with controls. Also handler adding moved from play/pause method to setSrc, because if we show paused video with native controls - our play method is not called.
Po zminie branch'a i utworzeniu nowego PR'a zacznę dodawać uwagi do plków. |
@@ -57,12 +59,17 @@ @interface RCT_EXTERN_MODULE (RCTVideoManager, RCTViewManager) | |||
RCT_EXPORT_VIEW_PROPERTY(onPlaybackStalled, RCTDirectEventBlock); | |||
RCT_EXPORT_VIEW_PROPERTY(onPlaybackResume, RCTDirectEventBlock); | |||
RCT_EXPORT_VIEW_PROPERTY(onPlaybackRateChange, RCTDirectEventBlock); | |||
RCT_EXPORT_VIEW_PROPERTY(onPlayedTracksChange, RCTDirectEventBlock); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Czy jesteśmy w stanie dostosować to do implementacji open-source, gdzie są trzy callbacki
https://thewidlarzgroup.github.io/react-native-video/component/events#onaudiotracks
https://thewidlarzgroup.github.io/react-native-video/component/events#onvideotracks
https://thewidlarzgroup.github.io/react-native-video/component/events#ontexttracks
Co ważne onaudiotracks / ontexttracks są zaimplementowane dla iOS według dokumentacji open-source
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tak spróbuję
ios/Video/RCTVideoManager.m
Outdated
RCT_EXPORT_VIEW_PROPERTY(onVolumeChange, RCTDirectEventBlock); | ||
RCT_EXPORT_VIEW_PROPERTY(onVideoPlaybackStateChanged, RCTDirectEventBlock); | ||
RCT_EXPORT_VIEW_PROPERTY(onVideoExternalPlaybackChange, RCTDirectEventBlock); | ||
RCT_EXPORT_VIEW_PROPERTY(onGetLicense, RCTDirectEventBlock); | ||
RCT_EXPORT_VIEW_PROPERTY(onPictureInPictureStatusChanged, RCTDirectEventBlock); | ||
RCT_EXPORT_VIEW_PROPERTY(onRestoreUserInterfaceForPictureInPictureStop, RCTDirectEventBlock); | ||
|
||
RCT_EXPORT_VIEW_PROPERTY(onCommandResult, RCTBubblingEventBlock); | ||
RCT_EXTERN_METHOD(getCurrentTime : (nonnull NSNumber*)rectTag reactTag : (nonnull NSNumber*)commandId commandId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wydaje się że możemy usunąć tą implementacje bo jest zaimplementowane w open-source
https://thewidlarzgroup.github.io/react-native-video/component/methods#getcurrentposition
Musimy tylko zaktualizować main-dxp zmianami które wyszły w 6.2.0 open-source. Zrobimy to po zakończeniu tego wyrównania z 5.X
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okej, usunę ten commit
a70ea47
to
ea5f907
Compare
ea5f907
to
93ad73b
Compare
93ad73b
to
6cec1c7
Compare
This reverts commit 3a903b2.
Summary
Motivation
Changes
Test plan